<?php
function smarty_insert_getusernamezq1($param, &$smarty) {

	if ($_SESSION['union_username']=='') {
		$string="
		<form method=\"post\" id=\"formzq1\" action=\"https://passport.9wee.com/login\" onsubmit='javascript: return checklogininfo();'>
		<ul style=\"float:right;\">
            <li><input type=\"image\" src=\"../images/zuqiu1/zq_b.jpg\" /></li>
          </ul>
          <ul style=\"float:right; margin-left:40px; margin-bottom:10px; display:inline;\">
            <li>通行证：<input style=\"border:1px solid #608c03; background:#aad54e; height:16px; line-height:16px; width:116px; vertical-align:middle;\" name=\"username\" type=\"text\" /></li>
            <li style=\"margin-top:3px;\">密码：<input style=\"border:1px solid #608c03; background:#aad54e; height:16px; line-height:16px; width:116px; vertical-align:middle;\" name=\"password\" type=\"password\" /></li>
		</ul>
		</form>
		<ul style=\"clear:both; margin:0px;\">
            <li class=\"nav_btm_button\"><a href=\"../cs/\"><span >客服中心</span></a> <a href=\"../passport_index.php\"><span>帐号管理</span></a> <a href=\"../paycenter.php\"><span>游戏充值</span></a></li>
          </ul>";
	} else {
		$string=" <ul>
            <li>".$_SESSION['union_username'].",你好！欢迎回到武林足球经理</li>
            <li><a href=\"http://my.zq.9wee.com/?q=".$param['q']."&backurl=http://".$param['url']."/game/?game=101\"><img src=\"../images/zuqiu1/zq_kaishiyouxi.jpg\" /></a> <a href=\"../logout.php?url=http://".$param['url']."/game/?game=101\"><img src=\"../images/zuqiu1/zq_tuichudenglu.jpg\" /></a></li>
            <li class=\"nav_btm_button\"><a href=\"../cs/\"><span >客服中心</span></a> <a href=\"../passport_index.php\"><span>帐号管理</span></a> <a href=\"../paycenter.php\"><span>游戏充值</span></a></li>
          </ul>";
	}
	return $string;
 }
?>
